package com.pro.dao;

import com.pro.entity.LoginRecord;
import com.pro.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
/*
*   赵自强 21/11/5
*   登录
* */
@Mapper
public interface LoginMapper {

    //Login  赵自强 21/11/5
    User login(@Param("account") String account,@Param("password")String password);

    //添加登录日志 赵自强 21/11/7
    Boolean addLoginRecord(LoginRecord loginRecord);

    //登录 刘
    User getUser(String account);

    //judgeEnabled 判断账号状态 赵自强 21/12/21
    User judgeEnabled(@Param("account") String account);
}
